import request from "../../utils/request";

const BASE_URL = "maimao_search/search/goods";
export default {

    /**
     * 全量分类数
     */
    suggest(key) {
        return request({
            url: `${BASE_URL}/suggest?key=${key}`,
            method: 'get',
        })
    },

    search(req) {
        return request({
            url: `${BASE_URL}/search`,
            method: "post",
            data: req
        })
    }


}

